package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.PassWordDao;
import com.itheima.pojo.User;
import com.itheima.service.PassWordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;
@Service(interfaceClass = PassWordService.class)
@Transactional
public class PassWordServiceImpl implements PassWordService {

    @Autowired
    private PassWordDao passWordDao;


    @Override
    public User findByUserName(String username) {
        return passWordDao.findByUserName(username);
    }

    @Override
    public void updateUser(Map m) {
        passWordDao.updateUser(m);
    }
}
